<?php
/**
 * 
 * @author Freezy
 *
 */
class Perbuatan extends MY_Controller {

	function Perbuatan(){
		parent::MY_Controller();
		$this->validate_cookie();
	}
	
	function index(){
		$this->load->helper(array('html'));
		$this->load->config('rnd', true);
		$CONF = $this->config->item('rnd');

		//layout first
		$this->load->model('departemen_model');
		$layoutConf = $CONF['layout'];
		$layoutConf['left_content'] = array('view'=>'template/horz_nav', 
											'view_data'=>array('data'=>$CONF['nav']['psdm']));
		$layoutConf['right_content'] = array('view'=>'departemen/overview', 
											'view_data'=>array('dep_data'=>$this->departemen_model->select_last_entry()));
		$this->initialize_layout($layoutConf);
		
		//page
		$pageConf = $CONF['page'];
		$pageConf['jscript_default'] = array_merge($pageConf['jscript_default'], array('psdm/dapartemen', 'datepicker'));
		$pageConf['jscript'] = $pageConf['jscript_default'];
		$pageConf['css_default'] = array_merge($pageConf['css_default'], array('datepicker'));
		$pageConf['css'] = $pageConf['css_default'];
		$pageConf['template_view'] = 'template/2_layout';
		$this->initialize_page($pageConf);
		
		$this->finalize_view();
	}
}
/* End of file users/perbuatan.php */
/* Location: ./system/application/controllers/users/perbuatan.php */